package com.example.tepthydjl;

import android.support.multidex.MultiDexApplication;

import com.baidu.mapapi.CoordType;
import com.baidu.mapapi.SDKInitializer;
import com.tencent.bugly.Bugly;
import com.tencent.bugly.beta.Beta;
import com.tepth.remote.control.base.config.ApiDictionary;
import com.tepth.remote.control.base.icon.FontControlModule;
import com.tepth.remote.core.app.Control;

import me.yokeyword.fragmentation.Fragmentation;

/**
 * Description:
 *
 * @author Hequn.Lee
 * @date 2018/11/8
 */
public class ControlApp extends MultiDexApplication {

    @Override
    public void onCreate() {
        super.onCreate();
        Control.init(this)
                .withSoapHost(ApiDictionary.SOAP_HOST)
                .withRetrofitHost(ApiDictionary.RETROFIT_HOST)
                .withIcon(new FontControlModule())
                .configure();
        //初始化百度地图
        SDKInitializer.initialize(getApplicationContext());
        SDKInitializer.setCoordType(CoordType.GCJ02);
        Fragmentation.builder()
                .stackViewMode(Fragmentation.NONE)
                .debug(false)
                .install();
        Beta.autoInit = true;
        Beta.autoCheckUpgrade = true;
        Bugly.init(getApplicationContext(), "b435e7dfc1", true);
    }
}
